//
//  HLRtcMessageModel.h
//  YueYue
//
//  Created by hulu001 on 2023/6/19.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HLRtcMessageModel : NSObject

@property (nonatomic, copy) NSString *from;// 对方的ID
@property (nonatomic, copy) NSString *fromName;// 对方的名字
@property (nonatomic, copy) NSString *fromAvatar;
@property (nonatomic, copy) NSString *messageId;
@property (nonatomic, copy) NSString *ext;
@property (nonatomic, assign) NSInteger type;
@property (nonatomic, strong) NSDictionary *localExt;

@property (copy,    nonatomic) NSString *text; // 用于直接显示的文本
//local
@property (nonatomic, strong) NSString *transText;
@property (nonatomic, assign) NSInteger index;

+ (HLRtcMessageModel *)messageWithJSONString:(NSString *)JSONString;
+ (NSString *)randomID;
@end


NS_ASSUME_NONNULL_END
